package com.wakeup.yygh.msm.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class MsmConstantPropertiesUtils implements InitializingBean {

    @Value("${sms.accountSId}")
    private String accountSId;

    @Value("${sms.accountToken}")
    private String accountToken;

    @Value("${sms.appId}")
    private String appId;

    public static String ACCOUNTS_ID;
    public static String ACCOUNTS_TOKEN;
    public static String APP_ID;

    @Override
    public void afterPropertiesSet() throws Exception {
        ACCOUNTS_ID=accountSId;
        ACCOUNTS_TOKEN=accountToken;
        APP_ID=appId;
    }
}
